﻿#include "mainwindow.h"

#include <QApplication>
#include "stream/demux.h"
#include <QDebug>
#include "stream/demuxthread.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    unsigned char* data[3] = {0};

    qDebug() << data[0];
    qDebug() << data[0] + 1;
    const char* url = "rtsp://admin:admin123@192.168.10.108/cam/realmonitor?channel=1&subtype=0";
    DemuxThread dt;
    bool ret = dt.open(url);
    if(ret)
    {
        dt.start_all_thread();
    }
    MainWindow w;
    w.show();

    qDebug() <<"好好";
    return a.exec();
}
